@import "variable.scss";

//html {
//  font-size: 16px !important;
//}

body, html {
  font-size: 16px;
  line-height: 1;
  font-family: 'PingFang SC', 'STHeitiSC-Light', 'Helvetica-Light', arial, sans-serif, 'Droid Sans Fallback';
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  //background: $color-background;
  color: $color-text;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0 auto;
  //overflow: hidden;
}


$vw_fontsize: 75;
@function rem($px) {
  @return ($px / $vw_fontsize ) * 1rem;
}
$vw_design: 750;
html {
  font-size: ($vw_fontsize / ($vw_design )) * 100vw !important;
  @media screen and (max-width: 320px) {
    font-size: 32px !important;
  }
  @media screen and (min-width: 540px) {
    font-size: 54px !important;
  }
}

body {
  max-width: 540px;
  min-width: 320px;
}


*,::after,::before {
  box-sizing: border-box;
}

input {
  outline: none;
}

button:focus{
  outline:none;
}

.sm-sz-9 {
  display: inline-block;
  font-size: 12px;
  transform: scale(.7);
}

.sm-sz-10 {
  display: inline-block;
  font-size: 12px;
  transform: scale(.8);
}


.sm-sz-11 {
  display: inline-block;
  font-size: 12px;
  transform: scale(.9);
}

//img {
//  content: normal !important;
//}

//*::before, *::after {
//  content: '' !important;
//}

// cube-ui bug
.cube-tip {
  animation: none !important;
}

.cube-toast {
  animation: none !important;
}

#app {
  > div {
    -webkit-overflow-scrolling: touch;
  }
}

/*img[src=""],img:not([src]){
  opacity:0;
}*/

.v-cloak {
  visibility: hidden;
}

.cube-toast-tip {
  font-size: 26px;
  line-height: 30px;
  max-height: 3em;
}

.cube-toast-icon {
  width: 26px;
  height: 26px;
  font-size: 26px;
}

